<?php
/*
 * Created on 24/08/2007
 *
 * To change the template for this generated file go to
 * Window - Preferences - PHPeclipse - PHP - Code Templates
 */
?>
<?php use_helper('Object', 'Validation', 'ObjectAdmin', 'I18N', 'Date') ?>
<?php use_helper('Javascript')?>
<?php use_helper('Javascript','Object')?>
<?php echo javascript_include_tag('ajax') ?>
<?php use_stylesheet('/sf/sf_admin/css/main') ?>

     <table width="600" border="0" align="center" id="externa">
        <tr>
          <td valign="top">
              <table width="500" height="335" border="0" align="center">
                <tr bgcolor="#e1e1e1">
                  <td bgcolor="#e1e1e1" height="10" colspan="3" class="estilo1">Datos Personales</td>
                  <td height="15"></td>
                </tr>
                <?
         			$id_est  = 1;
         			$sf_user->setAttribute('idE',$id_est);
         			$objUsu = AteneausuarioPeer::retrieveByPk($id_est);
         			$urlfoto = $objUsu->getUrlFoto();
         			//$email = $objUsu->getEmail();
         			$objCita = new Cita();
         			$ced     = $objCita->getCedulaEstudianteConId($id_est);
         			$objEstudiante = new Estudiante();
         			$datos = $objEstudiante->getDatosDelEstudianteConCed($ced);
         			$n = $datos->getNombre();
         			$a = $datos->getApellido();
         			$c = $datos->getCedula();
         			$t = $datos->getTelefonoCelular();
         			$e = $datos->getObjDatoEstudiante()->getEmailAlterno();
         			$cr= $datos->getNomCarrera();
         			$i = $datos->getObjDatoAcademico()->getPromedioNota();
         			$asig = $datos->getObjsMaterias();
         			$sf_user->setAttribute('promedio',$i);

         			$mat = '';
         			foreach ($asig as $as)
                  	{
                  	  $mat= $mat.' '.$as->getNombre().', ';

                  	}
                  	$sf_user->setAttribute('materias',$mat);

      				?>

                <tr align="left">
                  <td height="15">C&eacute;dula:</td>
                  <td height="15" colspan="2">
                    <?echo $c?>
                  <td height="15"></td>
                </tr>
                <tr align="left">
                  <td height="15">Nombre:</td>
                  <td colspan="" width="200">
                    <?echo $n?>
                  </td>
                  <td rowspan="4" aling "rigth"><?php echo image_tag($objUsu->getUrlFoto(), 'alt=imagen size=120x120') ?>
                  </td>
                </tr>
                <tr align="left">
                  <td height="11">Apellido:</td>
                  <td colspan="2"><?echo $a?></td>
                  <td height="15"></td>
                </tr>
                <tr align="left">
                  <td height="15">Tel&eacute;fono:</td>
                  <td colspan="2"><?echo $t?></td>
                  <td height="15"></td>
                </tr>
                <tr>
                  <td height="20">Email:</td>
                  <td height="10" colspan="2"><?echo $e?></td>
                  <td height="15"></td>
                </tr>
				<tr>
                  <td height="20">Carrera:</td>
                  <td height="10" colspan="2"><?echo $cr?></td>
                  <td height="15"></td>
                </tr>
                <tr>
                  <td height="10">Indice academico:</td>
                  <td height="10" colspan="2"><? echo $i ?></td>
                  <td height="10" colspan="0"></td>
                </tr>
                <tr>
                  <td height="10">Materias que cursa:</td>
                  <td height="10" colspan="2">
                  <?
                  foreach ($asig as $as)
                  {
                  	echo $as.', ';
                  }

                  ?></td>
                  <td height="10" colspan="0"></td>
                </tr>
                <tr>
                  <td height="10"></td>
                  <td height="10" colspan="2"></td>
                  <td height="10" colspan="0"></td>
                </tr>

                <tr bgcolor="#e1e1e1">&nbsp;
                  <td height="10" colspan="3" class="estilo1">Datos de la Entrevista:</td>

                </tr>
                <tr>
                  <td height="10"></td>
                  <td height="10" colspan="3"></td>
                </tr>
                <tr>

                  <td width="50" colspan="3">

                    <div id="sf_admin_container">

					<div id="sf_admin_content">
					<?php include_partial('solicitudasesor/edit_messages', array('estudiante_aspirante' => $estudiante_aspirante, 'labels' => $labels)) ?>
					<?php include_partial('solicitudasesor/edit_form', array('estudiante_aspirante' => $estudiante_aspirante, 'labels' => $labels)) ?>

					</div>

					</div>


                  </td>
                </tr>


              </table>

          </td>
         </tr>
      </table>

